pages =
    home: (req, res)->
        res.render("pages/home", {})

    dashboard: (req, res)->
        res.render("pages/dashboard", {})

    typography: (req, res)->
        res.render("pages/typography", {})

    elements: (req, res)->
        res.render("pages/elements", {})

    buttons: (req, res)->
        res.render("pages/buttons", {})

    treeview: (req, res)->
        res.render("pages/treeview", {})

    tables: (req, res)->
        res.render("pages/tables", {})

    "form-elements": (req, res)->
        res.render("pages/form-elements", {})

    "form-wizard": (req, res)->
        res.render("pages/form-wizard", {})

    wysiwyg: (req, res)->
        res.render("pages/wysiwyg", {})

    widgets: (req, res)->
        res.render("pages/widgets", {})

    calendar: (req, res)->
        res.render("pages/calendar", {})

    gallery: (req, res)->
        res.render("pages/gallery", {})

    grid: (req, res)->
        res.render("pages/grid", {})

    pricing: (req, res)->
        res.render("pages/pricing", {})

    buttons: (req, res)->
        res.render("pages/buttons", {})

    invoice: (req, res)->
        res.render("pages/invoice", {})

    login: (req, res)->
        res.render("pages/login", {})


    "error-404": (req, res)->
        res.render("pages/error-404", {})

    "error-500": (req, res)->
        res.render("pages/error-500", {})

    blank: (req, res)->
        res.render("pages/blank", {})

    profile: (req, res)->
        username = req.query.username || req.params.username
        if !username
            return @home(req, res)
        res.render("pages/profile", {username: username})


for key, value of  pages
    exports[key] = value


